import request from '@/utils/request'

// 查询矿井基础信息列表
export function listInformation(query) {
  return request({
    url: '/dispatch/information/list',
    method: 'get',
    params: query
  })
}

// 查询矿井基础信息详细
export function getInformation(mineInfoId) {
  return request({
    url: '/dispatch/information/' + mineInfoId,
    method: 'get'
  })
}

// 新增矿井基础信息
export function addInformation(data) {
  return request({
    url: '/dispatch/information',
    method: 'post',
    data: data
  })
}

// 修改矿井基础信息
export function updateInformation(data) {
  return request({
    url: '/dispatch/information',
    method: 'put',
    data: data
  })
}

// 删除矿井基础信息
export function delInformation(mineInfoId) {
  return request({
    url: '/dispatch/information/' + mineInfoId,
    method: 'delete'
  })
}
